﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestInst.view
{
    public partial class TestInherited : TestInst.view.InputBox
    {
        public TestInherited()
        {
            InitializeComponent();
        }

        private void CancelBtn_Click(object sender, EventArgs e)
        {
            if (NameTB.Text == "")
            {
                MessageBox.Show("You must enter a name.", "Name Entry Error",
                   MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                // Code to act on the data entered would go here.
                MessageBox.Show("You get it.", "OK",
                   MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }
}
